<?php get_header(); ?>

<!-- BEGIN #main-content -->
<div <?php echo sidebar_position('primary-content'); ?>>
		
	<h1 class="page-title">
		<?php echo single_cat_title( '', false ); ?>
	</h1>
	
	<?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?>
		
	<!-- BEGIN .page-content -->
	<div class="page-content">
		
		<?php if ( have_posts() ) : ?>
		
		<?php if ( category_description() ) : ?>
			<div class="archive-meta"><?php echo category_description(); ?></div>
		<?php endif; ?>
		
		<?php if( $data['category_page_style'] == 'One Column' ) { ?>
		
			<ul class="article-category-col-1 clearfix">
				<?php while ( have_posts() ) : the_post(); ?>
					<?php get_template_part( 'loop', 'style1' ); ?>
				<?php endwhile; ?>
			</ul>
			
			<?php load_template( get_template_directory() . '/includes/pagination.php' ); ?>
			
		<?php } elseif ( $data['category_page_style'] == 'Two Columns' ) { ?>
			
			<ul class="article-category-col-2 clearfix">
				<?php while ( have_posts() ) : the_post(); ?>
					<?php get_template_part( 'loop', 'style7' ); ?>
				<?php endwhile; ?>
			</ul>
			
			<?php load_template( get_template_directory() . '/includes/pagination.php' ); ?>
			
		<?php } else { ?>
			
			<ul class="article-category-col-2 clearfix">
				<?php while ( have_posts() ) : the_post(); ?>
					<?php get_template_part( 'loop', 'style2' ); ?>
				<?php endwhile; ?>
			</ul>
			
			<?php load_template( get_template_directory() . '/includes/pagination.php' ); ?>
			
		<?php } ?>

	<?php else : ?>
		<?php get_template_part( 'content', 'none' ); ?>
	<?php endif; ?>

	<!-- END .page-content -->
	</div>
		
<!-- BEGIN #main-content -->
</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>